<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>凤栖梧桐</title>
  <include file="./themes/default/portal/cssH.html"/>

  <style>
    .banner {
      display: block;
      width: 100%;
      height: auto;
    }

    .imgli {
      width: 64px;
      height: auto;
      margin: 11px 0;
    }

    .desc {
      padding: 0 15px;
      height: 80px;
      overflow: hidden;
    }

    .borderLeft {
      height: 4px;
      width: 30px;
      background: #6884E3;
      border-radius: 4px;
      margin-top: 8px;
    }

    @media screen and (min-width: 950px) {
      .box > div {
        width: 33.33%;
        display: inline-block;
        margin-top: 40px;
        font-size: 16px;
      }

      .img {
        width: 108px;
        height: auto;
      }

      .map {
        margin-bottom: 60px;
        width: 100%;
        height: 500px;
      }

      .titles{
        font-size: 36px;
      }

      .titles+div{
        font-size: 24px;
      }
      .make h1 {
        margin-bottom: 24px;
      }

      .f1n{
        font-size: 18px;
      }
    }

    @media screen and (max-width: 950px) {
      .box > div {
        width: 33%;
        display: inline-block;
        margin-top: 40px;
      }

      .make h1 {
        margin-bottom: 10px;
      }

      .img {
        width: 50px;
        height: auto;
      }

      .map {
        margin-bottom: 60px;
        width: 100%;
        height: 200px;
      }
      .titles{
        font-size: 16px;
      }

      .titles+div{
        font-size: 14px;
      }

      .f1n{
        font-size: 14px;
      }
    }

    .make {
      top: 0;
      left: 0;
      color: #fff;
      width: 100%;
      height: 100%;
    }
    .imgLi {
      width: 15px;
      height: 15px;
      margin-right: 3px;
    }

    .navs {
      margin-top: 20px;
      margin-bottom: 70px;
    }

    .border {
      height: 1px;
      background: #ccc;
      width: 100%;
      margin-top: 10px;
    }

    .border > div {
      top: 0;
      right: 0;
      height: 1px;
      width: 150px;
      background: #6884E3;
    }

  </style>
</head>
<body>
<div id="web">
  <div id="app">
    <include file="./themes/default/portal/header.html"/>



    <div>
      <div class="pr">
        <img class="banner" src="__STATIC__/demo/img/cover9.png" alt="">
        <div class="pa make flex flex-align flex-center">
          <div>
            <h1 class="tc titles">不只是工作 也可以是合作</h1>
            <div class="tc">Not only work but also cooperation</div>
          </div>
        </div>
      </div>

      <div class="navs">
        <div>
          <div class="flex">
            <!--    从哪些页进来的    -->
            <div>
              <div class="flex flex-align">
                <img class="imgLi" src="/static.demo/img/d1.png" alt="">
                <div class="f1n" @click="navigatorFun(0)">首页&nbsp;<i class="el-icon-arrow-right"></i>&nbsp;</div>
              </div>
            </div>
            <!--   在当前页的标题    -->
            <div>
              <div class="flex flex-align">
                <img class="imgLi" src="/static/demo/img/d2.png" alt="">
                <div class="f1n">凤栖梧桐</div>
              </div>
            </div>
          </div>
          <!--   下边框   -->
          <div class="border pr">
            <div class="pa"></div>
          </div>
        </div>
      </div>

      <div style="height: 25px;"></div>

      <div>
        <div class="tc f28">
          联系方式
          <div class="flex flex-align">
            <div class="borderLeft" style="margin-bottom: 10px"></div>
          </div>
        </div>
      </div>

      <div class="flex flex-align flex-center">
        <div class="box">
          <div :key="index" v-for="(item,index) in list">
            <div class="flex flex-align flex-center"><img class="img" :src="item.img" alt=""></div>
            <div class="tc c6">{{item.title}}</div>
            <div class="flex flex-align flex-center"><img class="imgli" src="/static/demo/img/bg1.png" alt=""></div>
            <div class="tc f14 c9 desc">{{item.desc}}</div>
          </div>
        </div>
      </div>
      <div style="height: 50px"></div>

      <div class="map" id="map"></div>

    </div>



  </div>
  <!--  尾  -->
  <include file="./themes/default/portal/footer.html"/>
  <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=19a89a0faa4f48849f7e3e94dd3f2d1d"></script>
<script>
  var app = new Vue({
    el: '#web',
    data: {
      show: false,
      navIndex: 4,
      navList: [{title: '网站首页', name: 'main', nav: []}, {title: '看见梧桐树', name: 'see', nav: []}, {
        title: '看清梧桐树',
        name: 'clearly',
        nav: []
      }, {title: '看懂梧桐树', name: 'caseList', nav: []}, {title: '凤栖梧桐', name: 'contact', nav: []}],
      navLists: [
        {title: '网站首页', name: 'main', nav: []},
        {title: '看见梧桐树', name: 'see', nav: ['企业简介', '关于我们']},
        {title: '看清梧桐树', name: 'clearly', nav: ['新闻资讯']},
        {title: '看懂梧桐树', name: 'caseList', nav: ['小程序开发', '公众号开发', 'APP开发', '品牌网站']},
        {title: '凤栖梧桐', name: 'contact', nav: ['品牌网站']}],

      // 手机端导航列表
      navList1: [
        {
          img: '/static/demo/img/nav7.png',
          title: '小程序开发',
          name: 'program'
        },
        {
          img: '/static/demo/img/nav4.png',
          title: 'APP开发',
          name: 'development'
        },
        {
          img: '/static/demo/img/nav6.png',
          title: '公众号开发',
          name: 'publicNumber'
        },
        {
          img: '/static/demo/img/nav5.png',
          title: 'PC/WAP建站',
          name: 'build'
        }
      ],
      list: [
        {
          title: '专业产品研发团队',
          img: '/static/demo/img/nav14.png',
          desc: '销售、产品经理、UI设计、前端开发 后端开发、测试分工明确，一对一沟 通，减少沟通误差。'
        },
        {
          title: '原生开发',
          img: '/static/demo/img/nav15.png',
          desc: '原生开发，为客户量身打造最优产品，满足客户高端定制要求。'
        },
        {
          title: '软件著作权保护',
          img: '/static/demo/img/nav16.png',
          desc: '客户享有软件著作权，避免后期技术纠纷，最大程度保护客户利益。 '
        },
      ],
      caseList: ['./img/s1.png', './img/s2.png', './img/s3.png'],

      imgs: ['./img/bg5.png', './img/bg6.png', './img/bg7.png'],
      msg: '',
      name: '',
      text: '',
      phone: ''
    },
    mounted: function () {
      this.intMap()
    },
    created: function () {

    },
    methods: {
      navigatorFun: function (index){
        switch (index) {
            case 0:
                window.location.href = "{:url('index/index')}"
                break
            case 1:
                window.location.href = "{:url('index/see')}"
                break
            case 2:
                window.location.href = "{:url('index/clearly')}"
                break
            case 3:
                window.location.href = "{:url('index/caseList')}"
                break
            case 4:
                window.location.href = "{:url('index/contact')}"
                break
        }
      },
      intMap: function() {
        var map = new AMap.Map('map', {
          resizeEnable: true, //是否监控地图容器尺寸变化
          zoom: 11, //初始化地图层级
        });
      },
      contact: function () {
        var _this = this
        var reg = /^1[5||4||3||6|7||8||9][0-9]{9}$/
        var ref = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
        if (!_this.name || _this.name.length > 30) {
          _this.msg = '请确认您的姓名是否填写（或长度超出30个字符）！'
            return false;

        }
        if (!reg.test(_this.phone) && !ref.test(_this.phone)) {
          _this.msg = '请确认您的邮箱（或手机号）是否填写（或填写的是否正确）！'
            return false;

        }
        if (!_this.msg) {
          _this.msg = '请填写需要解决的行业！'
            return false;

        }
          $.post("{:url('Index/postContact')}",{
              user_name:this.name,
              str:this.phone,
              content:this.msg
          },function(data){
              var res = JSON.parse(data);
              if(res.code == 1){
                  layer.msg('留言成功',function(){
                      window.location.href = "{:url('Index/index')}";
                  });
              }else{
                  layer.msg('网络错误');
              }
          })
      }
    }
  })

</script>
</html>